import Container from "../../pages/goods/container";
import Detail from "../../pages/goods/detail";
import Qualifications from "../../pages/goods/qualifications";
import Goods from "../../pages/goods/goods";
import Add from "../../pages/goods/add";
import ShoppDetail from "../../pages/goods/shoppdetail";
import Type from "../../pages/goods/type";
const goods = {
  path: "",
  element: <Container />,
  children: [
    {
      path:"goods",
      name:'商品管理',
      element:<Goods></Goods>
    },
    {
     path:'goods/add',
     name:'新增商品',
     element:<Add></Add>
    },
    {
      path:'goods/type',
      name:'类型',
      element:<Type></Type>
     },
    {
      path: "goods/detail/:id?",
      name:'商品详情',
      element: <Detail></Detail>
    },
    {
      path:'goods/qualifications/:id?',
      name:'商品',
      element:<Qualifications></Qualifications>
    },
    // {
    //   name: '商品详情',
    //   path:'goods/ShoppDetail/:id?',
    //   element:<ShoppDetail></ShoppDetail>
    // }
  ]
}
export default goods;